package com.example.myapplication;

import com.everyline.baselibrary.base.BaseResponse;

import java.util.Map;

import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;

/**
 * crated by Administrator on 2021/6/3
 * 746608431@qq.com
 * 描述：TODO
 */
public interface BaseApiService {
    //手机号密码登录
    @FormUrlEncoded
    @POST("app/user/login/applogin")
    Flowable<String> applogin(@FieldMap Map<String, String> map);

    //手机号密码登录
    @FormUrlEncoded
    @POST("app/user/login/applogin")
    Flowable<BaseResponse<LoginBean>> applogin2(@FieldMap Map<String, String> map);

    //用户投诉跑腿订单
    @Multipart
    @POST("app/user/paotui/tousupaotuiorder")
    Flowable<String> tousupaotuiorder(@PartMap Map<String, RequestBody> map);


}
